package com.icesoft.xsnow.upms.service.impl;


import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import com.icesoft.xsnow.framework.service.impl.BaseServiceImpl;
import com.icesoft.xsnow.upms.api.po.SysRole;
import com.icesoft.xsnow.upms.mapper.SysRoleMapper;
import com.icesoft.xsnow.upms.service.SysRoleService;

import java.util.List;
/*
*Copyright © 2019 XSNOW
*四川瑞韬科技有限公司
*http://www.ratotech.com.cn
*All rights reserved.
*/

/**
 * @program: xsnow
 * @description: 角色表 服务实现类
 * @author xuefeng.gao
 * @create: 2019-05-27
 */
@Service
@AllArgsConstructor
public class SysRoleServiceImpl extends BaseServiceImpl<SysRoleMapper, SysRole>implements SysRoleService {
    /**
     * 通过用户ID，查询角色信息
     *
     * @param userId
     * @return
     */
    @Override
    public List findRolesByUserId(Integer userId) {
        return mapper.listRolesByUserId(userId);
    }
}
